package cn.jbt.api.admin.repository;

import cn.jbt.api.admin.entity.SysDictInfo;
import org.springframework.data.jpa.repository.JpaRepository;

public interface SysDictInfoRepository extends JpaRepository<SysDictInfo, Long> {

    SysDictInfo findFirstById(long id);

    SysDictInfo findFirstByDictCode(String dictCode);

    SysDictInfo findFirstByDictCodeAndIdNot(String dictCode, long id);

}
